
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
        <title>
            <%-- Titulo de la ventana --%>
            <bean:message key="global.titleIndex"/>
        </title>

        <link rel="stylesheet" type="text/css" href="css/style.css">
        <link rel="stylesheet" type="text/css" href="css/result.css">
    </head>

    <%
       dao.DAOVocabulario.armarHashVocabulario();
    %>

    <body>
        <textarea id=csi style=display:none></textarea>
        

        <center>
            <div align="center">
                <br clear=all id=lgpd>
                <img src="images/logo2.png" height="130">
            </div>


            <html:form  action="/buscar" >
                <table cellpadding=0 cellspacing=0>
                    <tr valign=top>
                    <label>
                        <div align="center">
                            <html:text name="buscarForm" property="keyword" size="80"/>
                            <html:submit value="Buscar" />
                        </div>
                    </label>
                    <td nowrap width=25% align=left>&nbsp;</td>
                    </tr>
                    <tr>
                        <td align=center colspan=3>&nbsp;</td>
                    </tr>
                </table>

                <div id="contenedor">

                    <div id="body">

                        <html:messages id="messages" message="true">
                            <bean:write name="messages"/>
                            <br>
                        </html:messages>

                        <logic:present name="list_resultados">
                            <logic:iterate id="datos" name="list_resultados">
                                <div class="result_row odd">
                                    <h3>
                                        <div align="left">
                                            <a href="
                                               <bean:write name="datos" property="url" />
                                               " target="_blank">
                                                <bean:write name="datos" property="titulo" />
                                            </a>
                                        </div>
                                    </h3>
                                    <span class="sub_row">
                                        <div align="left">
                                            <bean:write name="datos" property="descripcionResultados" filter="false" />
                                        </div>
                                    </span>
                                </div>
                            </logic:iterate>
                        </logic:present>
                    </div>
                </div>

            </html:form>

        </center>
        <div style="text-align: center; position: fixed;bottom: 20px; left: 50%">
             <a href="login.jsp" class=gb4>Administracion</a>                
        </div>
    </body>
</html>